"""
Task 3
The math quiz program.

Write a program that asks the answer for a mathematical expression, checks whether
the user is right or wrong, and then responds with a message accordingly.
"""
from random import randint
random_numer_1 = randint(0, 10)
random_numer_2 = randint(0, 10)
answer = ""
correct_answer = random_numer_1 + random_numer_2
while answer == "":
    answer = input(f"Enter correct answer {0} + {1} = ".format(random_numer_1, random_numer_2))
if int(answer) == correct_answer:
    print("You're right")
else:
    print(f"You're wrong, correct answer is {correct_answer}")
